/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mavenrentcars.service;

import com.mavenrentcars.exception.ViewException;
import com.mavenrentcars.form.OrderForm;
import com.mavenrentcars.model.Car;
import com.mavenrentcars.model.Reservation;
import com.mavenrentcars.model.User;
import java.util.List;
import java.util.Set;

/**
 *
 * @author serg
 */
public interface ReservationService extends GenericService<Reservation, Integer> {

    public List<Reservation> getAll(Car car);

    public List<Reservation> getAll(User user);

    public Set<String> getByCarDays(Car car);

    public String getJasonByCarDays(Car car);

    public Reservation add(OrderForm form) throws ViewException;
}
